package com.enjoyor.soa.traffic.api.dto.efoms;

import com.enjoyor.soa.traffic.util.bean.base.ABean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;

/**
 * 设备状态
 * 
 * @author zyh
 * 
 * @date 2018-12-28
 */

@ApiModel(value = "DeviceStatusInfoDto", description = "设备状态")
public class DeviceStatusInfoDto extends ABean{
	
	private static final long serialVersionUID = 3774788576565258377L;

	@ApiModelProperty(value = "主键", name="devStatusId",  required = true)
    private String devStatusId;

	@ApiModelProperty(value = "设备类别编号", name="devCategoryCode",  required = true)
    private String devCategoryCode;

	@ApiModelProperty(value = "设备类别名称", name="devCategoryName",  required = true)
    private String devCategoryName;

	@ApiModelProperty(value = "设备类型编号", name="devTypeCode",  required = true)
    private String devTypeCode;

	@ApiModelProperty(value = "设备类型名称", name="devTypeName",  required = true)
    private String devTypeName;

	@ApiModelProperty(value = "设备编号", name="devId",  required = true)
    private String devId;

	@ApiModelProperty(value = "设备名称", name="devName",  required = true)
    private String devName;

	@ApiModelProperty(value = "设备状态编号", name="devStatusCode",  required = true)
    private String devStatusCode;

	@ApiModelProperty(value = "设备状态名称", name="devStatusName",  required = true)
    private String devStatusName;
	
	@ApiModelProperty(value = "网络是否连通", name="isPingConnect",  required = true)
    private Boolean isPingConnect;
    
	@ApiModelProperty(value = "是否高丢包", name="isHighPackage",  required = true)
    private Boolean isHighPackage;
    
	@ApiModelProperty(value = "是否高响应", name="isHighResponse",  required = true)
    private Boolean isHighResponse;
    
	@ApiModelProperty(value = "数据有无", name="isHaveData",  required = true)
    private Boolean isHaveData;
    
	@ApiModelProperty(value = "数据是否延迟", name="isDelayData",  required = true)
    private Boolean isDelayData;
    
	@ApiModelProperty(value = "巡检结果编号", name="checkResultCode",  required = true)
    private String checkResultCode;

	@ApiModelProperty(value = "巡检结果", name="checkResultName",  required = true)
    private String checkResultName;

	@ApiModelProperty(value = "维修状态编号", name="repStatusCode",  required = true)
    private String repStatusCode;

	@ApiModelProperty(value = "维修状态名称", name="repStatusName",  required = true)
    private String repStatusName;

	@ApiModelProperty(value = "连接状态编号", name="linkStatusCode",  required = true)
    private String linkStatusCode;

	@ApiModelProperty(value = "连接状态名称", name="linkStatusName",  required = true)
    private String linkStatusName;
    
	@ApiModelProperty(value = "图片访问是否成功", name="isPhotoSuccess",  required = true)
    private Boolean isPhotoSuccess;
	
	@ApiModelProperty(value = "图片状态是否正常", name="picStatusFlag",  required = true)
	private Boolean picStatusFlag;
    
	@ApiModelProperty(value = "更新时间", name="updateTime",  required = true)
    private String updateTime;

	@ApiModelProperty(value = "最后巡检时间", name="lastCheckTime",  required = true)
    private String lastCheckTime;
    
	@ApiModelProperty(value = "最后上传时间", name="lastPassTime",  required = true)
    private String lastPassTime;

	@ApiModelProperty(value = "视频截图ftp路径", name="videoCapUrl",  required = true)
    private String videoCapUrl;
	
	public boolean dtoIsEmpty(){
	    if(StringUtils.isBlank(this.devId))return true;
	    if(StringUtils.isBlank(this.devName))return true;
        if(StringUtils.isBlank(this.devStatusCode))return true;
        if(StringUtils.isBlank(this.devTypeCode))return true;
        if(StringUtils.isBlank(this.devTypeName))return true;
        return false;
    }

    public boolean idIsEmpty(){
	    if(this.devStatusId!=null) return false;
        if(this.devId!=null&&this.devName!=null) return false;
        return true;
    }

    public String getDevStatusId() {
        return devStatusId;
    }

    public void setDevStatusId(String devStatusId) {
        this.devStatusId = devStatusId == null ? null : devStatusId.trim();
    }

    public String getDevTypeCode() {
        return devTypeCode;
    }

    public void setDevTypeCode(String devTypeCode) {
        this.devTypeCode = devTypeCode;
    }

    public String getDevTypeName() {
        return devTypeName;
    }

    public void setDevTypeName(String devTypeName) {
        this.devTypeName = devTypeName;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId == null ? null : devId.trim();
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName == null ? null : devName.trim();
    }

    public String getDevStatusCode() {
        return devStatusCode;
    }

    public void setDevStatusCode(String devStatusCode) {
        this.devStatusCode = devStatusCode == null ? null : devStatusCode.trim();
    }

    public String getDevStatusName() {
        return devStatusName;
    }

    public void setDevStatusName(String devStatusName) {
        this.devStatusName = devStatusName == null ? null : devStatusName.trim();
    }

    public String getRepStatusCode() {
        return repStatusCode;
    }

    public void setRepStatusCode(String repStatusCode) {
        this.repStatusCode = repStatusCode == null ? null : repStatusCode.trim();
    }

    public String getRepStatusName() {
        return repStatusName;
    }

    public void setRepStatusName(String repStatusName) {
        this.repStatusName = repStatusName == null ? null : repStatusName.trim();
    }

	public String getDevCategoryCode() {
		return devCategoryCode;
	}

	public void setDevCategoryCode(String devCategoryCode) {
		this.devCategoryCode = devCategoryCode;
	}

	public String getDevCategoryName() {
		return devCategoryName;
	}

	public void setDevCategoryName(String devCategoryName) {
		this.devCategoryName = devCategoryName;
	}

	public Boolean getIsPingConnect() {
		return isPingConnect;
	}

	public void setIsPingConnect(Boolean isPingConnect) {
		this.isPingConnect = isPingConnect;
	}

	public Boolean getIsHighPackage() {
		return isHighPackage;
	}

	public void setIsHighPackage(Boolean isHighPackage) {
		this.isHighPackage = isHighPackage;
	}

	public Boolean getIsHighResponse() {
		return isHighResponse;
	}

	public void setIsHighResponse(Boolean isHighResponse) {
		this.isHighResponse = isHighResponse;
	}

	public Boolean getIsHaveData() {
		return isHaveData;
	}

	public void setIsHaveData(Boolean isHaveData) {
		this.isHaveData = isHaveData;
	}

	public Boolean getIsDelayData() {
		return isDelayData;
	}

	public void setIsDelayData(Boolean isDelayData) {
		this.isDelayData = isDelayData;
	}

	public String getCheckResultCode() {
		return checkResultCode;
	}

	public void setCheckResultCode(String checkResultCode) {
		this.checkResultCode = checkResultCode;
	}

	public String getCheckResultName() {
		return checkResultName;
	}

	public void setCheckResultName(String checkResultName) {
		this.checkResultName = checkResultName;
	}

	public String getLinkStatusCode() {
		return linkStatusCode;
	}

	public void setLinkStatusCode(String linkStatusCode) {
		this.linkStatusCode = linkStatusCode;
	}

	public String getLinkStatusName() {
		return linkStatusName;
	}

	public void setLinkStatusName(String linkStatusName) {
		this.linkStatusName = linkStatusName;
	}

	public Boolean getIsPhotoSuccess() {
		return isPhotoSuccess;
	}

	public void setIsPhotoSuccess(Boolean isPhotoSuccess) {
		this.isPhotoSuccess = isPhotoSuccess;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getLastCheckTime() {
		return lastCheckTime;
	}

	public void setLastCheckTime(String lastCheckTime) {
		this.lastCheckTime = lastCheckTime;
	}

	public String getLastPassTime() {
		return lastPassTime;
	}

	public void setLastPassTime(String lastPassTime) {
		this.lastPassTime = lastPassTime;
	}

	public String getVideoCapUrl() {
		return videoCapUrl;
	}

	public void setVideoCapUrl(String videoCapUrl) {
		this.videoCapUrl = videoCapUrl;
	}

	public Boolean getPicStatusFlag() {
		return picStatusFlag;
	}

	public void setPicStatusFlag(Boolean picStatusFlag) {
		this.picStatusFlag = picStatusFlag;
	}
	
	
}